package com.eattravel.mapper;

import com.eattravel.pojo.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {

    List<Order> findOrdersByUserId(String UserId);

    int deleteOrderById(String orderId);

    /**
     * 支付宝创建订单
     * @return
     */
    int insertOrder(Order order);

    /**
     * 支付成功后更新订单状态
     * @return
     */
    int updateOrder(String orderId);

    //插入订单
    int insertIntoOrder(Order order,String userId);



}